home *** CD-ROM | disk | FTP | other *** search
- Path: btree.is.brooktree.com!usenet
- From: sasha@brooktree.com (Alex Bakaev)
- Newsgroups: comp.lang.c++
- Subject: Re: Help: trying to create a DLL in Borland C++ 4.5
- Date: Sun, 07 Jan 1996 23:31:05 GMT
- Organization: Brooktree Corporation
- Message-ID: <4cpl3e$qt8@btree.brooktree.com>
- References: <4cmthh$hso@ren.cei.net>
- NNTP-Posting-Host: komissar.is.brooktree.com
- X-Newsreader: Forte Free Agent v0.46
-
- spl@cei.net (Special Agent Orange) wrote:
-
- >Hi,
-
- > I am trying to create a DLL in Borland C++ 4.5. Everything is okay,
- >but I always get a linker error:
- > Linker Warning: Attempt to export non-public symbol GETDISKINFO
- >I used the keyword __export in the function definition according to
- >the online help examples.
-
- > Perhaps someone here that is familiar with Borland C++ can send me
- >some example source code and .def file. Thanks for any help...
-
- > SPL@cei.net
-
-
- Are you using .DEF file as well ? Are you including the above function
- in the EXPORT section ? If you do the problem might be twofold
- 1. you did not use PASCAL modifier for the function - it creates
- function name in all capitals and no leading underscore ( among other
- things )
- 2. you did not use extern "C" - so function name is mangled.
-
- As a result you are exporting different symbol.
-
-
- Hope this helps, Alex
-
-
-